﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmployerRegister.ascx.cs" Inherits="UserControls_employer_EmployerRegister" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<script type="text/javascript">
  function showOthers()
  {
     var combo = document.getElementById("drp");
    
  }
  function CheckCountry(obj,args)
  {
    var str = args.value;
    if(str == "-1")
    {
      args.IsValid = false;
    }
    else{
      args.IsValid = true;
    }
  }
</script>
<asp:Panel ID="EmpReg" runat="server" Width="730px">
    
    <table style="padding: 0px; margin: 0px; width:730px;" border="0" 
        cellpadding="0" cellspacing="3">
        <tr>
            <td colspan="4" style="font-size:20px; font-weight:bold; color:#800000;">
                &nbsp;<asp:Panel ID="Heading" runat="server" BackImageUrl="~/Images/back.jpg" Width="100%" Height="40px" HorizontalAlign="Center"> <span >New Client Registration Form</span></asp:Panel>
               </td>
        </tr>
        <tr>
            <td  >
                &nbsp;
            </td>
            <td  >
                &nbsp;
            </td>
            <td >
                &nbsp;
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" >
                <p style="text-align:justify; margin-left:10px; margin-right:10px; font-weight:bold;">
                Get started on your online recruitment process by getting your recruiter’s
account with Z2plus.com. Please fill in the minimum mandatory details in
the form below to proceed.
                </p>
            </td>
        </tr>
        <tr>
            <td style="width: 200px" >
                &nbsp;</td>
            <td  >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px" >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td align="left" >
                <span style="color:Red;"><b>*</b></span> marks are mandatory fields</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">
            <div style="text-align:left; margin-left:5px" >
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                <asp:Label ID="lblError" runat="server" ForeColor="Red"  />
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 200px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr id="trAccount" runat="server">
            <td style="margin-left:15px;text-align:left; font-weight:bold;width: 200px">
                Account Information</td>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr id="trBlank1" runat="server">
            <td style="width: 200px" >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr id="trUserName" runat="server">
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>User Name</td>
            <td width="5" >
                :</td>
            <td valign="top" align="left" style="width: 226px" >
                <asp:TextBox ID="txtUserName" runat="server" Width="200px"></asp:TextBox>
                <br />
                <div style="text-align:center;">
                <asp:UpdatePanel ID="updateCheck" runat="server">
                  <ContentTemplate>
                    <asp:LinkButton Text="Check Availability" runat="server" ID="btnCheckUser" 
                          CausesValidation="false" onclick="btnCheckUser_Click" />
                  </ContentTemplate>
                </asp:UpdatePanel>
                </div>
            </td>
            <td>
                <cc1:ValidatorCalloutExtender ID="validateUserName" runat="server" 
                    TargetControlID="ReqUserName"></cc1:ValidatorCalloutExtender>
                <asp:RequiredFieldValidator ID="ReqUserName" runat="server" 
                    ErrorMessage="Please Enter User Name" ControlToValidate="txtUserName" 
                    Display="None"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr id="trPassword" runat="server">
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Password</td>
            <td width="5" >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtpassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                
                
               
                
                
            </td>
            <td align="left">
            <span style="color:Red;"> *Password should 7 characters long...</span>
                <asp:RequiredFieldValidator ID="Reqpassword" runat="server" 
                    ErrorMessage="Please Enter password" ControlToValidate="txtpassword" 
                    Display="None"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegPwdLength" runat="server" 
                    ControlToValidate="txtpassword" Display="None" 
                    ErrorMessage="Minimum 7 characters long password  is required..." 
                    ValidationExpression="\w{7,20}"></asp:RegularExpressionValidator>
                <cc1:ValidatorCalloutExtender ID="ValidatePassword" runat="server" 
                    TargetControlID="Reqpassword"></cc1:ValidatorCalloutExtender><cc1:ValidatorCalloutExtender ID="VPasswordRange" runat="server" 
                    TargetControlID="RegPwdLength"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr id="trEmail" runat="server">
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>EmailID</td>
            <td width="5">
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqEmailId" runat="server" 
                    ErrorMessage="Please Enter Email Id" ControlToValidate="txtEmail" 
                    Display="None"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validateEmail" runat="server" 
                    TargetControlID="ReqEmailId"></cc1:ValidatorCalloutExtender>
                <asp:RegularExpressionValidator ID="RegEmail" runat="server" 
                    ErrorMessage="Invalid Email ID" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ControlToValidate="txtEmail" Display="None"></asp:RegularExpressionValidator>
                <cc1:ValidatorCalloutExtender ID="Regularemail" runat="server" 
                    TargetControlID="RegEmail"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td style="margin-left:15px;text-align:left;font-weight:bold; width: 200px;">
                Recruiter Information</td>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 200px" >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Company Name</td>
            <td width="5" >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqCompanyName" runat="server" 
                    ControlToValidate="txtCompanyName" Display="None" 
                    ErrorMessage="Please Enter Company Name"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validatecompany" runat="server" 
                    TargetControlID="ReqCompanyName"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                Contact Person</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtContactPerson" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                Company Type</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:RadioButton ID="rbtCompany" runat="server" Text="Company" 
                    GroupName="CompanyType" />
                <asp:RadioButton ID="rbtConsultancy" runat="server" Text="Consultancy" 
                    GroupName="CompanyType" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Industry Type</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:UpdatePanel ID="updateOtherIndustry" runat="server">
                 <ContentTemplate>
                
                <asp:DropDownList ID="DrpIndustryType" runat="server" Width="204px" 
                         onchange="showOthers();" AutoPostBack="True" 
                         onselectedindexchanged="DrpIndustryType_SelectedIndexChanged">
                </asp:DropDownList>
                 </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>
                <asp:TextBox ID="txtindustryOthers" runat="server" Width="200px" 
                    Visible="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Address</td>
            <td >
                :</td>
            <td align="left" >
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqAddress" runat="server" 
                    ControlToValidate="txtAddress" Display="None" 
                    ErrorMessage="Please Enter your Company Address"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validateAddress" runat="server" 
                    TargetControlID="ReqAddress"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>City
            </td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtCity" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtCityOthers" runat="server" Width="200px" Visible="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>State</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:DropDownList ID="DrpState" runat="server" Width="204px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqState" runat="server" 
                    ControlToValidate="DrpState" Display="None" 
                    ErrorMessage="Please Enter State"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="ValidateState" runat="server" 
                    TargetControlID="ReqState"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Country</td>
            <td >
                :</td>
            <td valign="top" align="left" >
             
                <asp:DropDownList ID="DrpCpuntry" runat="server" Width="204px" 
                    AutoPostBack="True" onselectedindexchanged="DrpCpuntry_SelectedIndexChanged">
                </asp:DropDownList>
              
            </td>
            <td>
                <asp:RequiredFieldValidator ID="reqCountry" runat="server" 
                    ControlToValidate="DrpCpuntry" Display="None" 
                    ErrorMessage="Please select a country name"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validateCountry" runat="server" 
                    TargetControlID="reqCountry"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Pin/Zip</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtZip" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqZip" runat="server" 
                    ControlToValidate="txtZip" Display="None" ErrorMessage="Please Enter ZipCode"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validatezip" runat="server" 
                    TargetControlID="ReqZip"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 200px" valign="top">
                <span style="color:Red;"><b>*</b></span>Phone Number</td>
            <td >
                :</td>
            <td valign="top" align="left" >
                <asp:TextBox ID="txtPhone" runat="server" Width="200px" Height="22px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ReqPhone" runat="server" 
                    ControlToValidate="txtPhone" Display="None" 
                    ErrorMessage="Please Enter Phone Number"></asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="validatephone" runat="server" 
                    TargetControlID="ReqPhone"></cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td style="width: 200px" align="right" valign="top">
                Company Profile</td>
            <td valign="top">
                :</td>
            <td colspan="2" align="left">
                <asp:TextBox ID="txtProfile" runat="server" Height="150px" TextMode="MultiLine" 
                    Width="445px"></asp:TextBox>
            </td>
            
        </tr>
        <tr>
            <td align="right" style="width: 200px">
                &nbsp;Website</td>
            <td valign="top">
                &nbsp;:</td>
            <td align="left">
                &nbsp;<asp:TextBox ID="txtWebsiteUrl" runat="server" Width="200px"></asp:TextBox></td>
            <td>
                &nbsp;
                  <asp:RegularExpressionValidator ErrorMessage="Please enter valid website url." 
                    ID="RegValidateWebUrl" runat="server" ControlToValidate="txtWebsiteUrl" 
                    Display="None" ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" ></asp:RegularExpressionValidator>
                  <cc1:ValidatorCalloutExtender ID="ValRegValidateWebUrl" runat="server" 
                    TargetControlID="RegValidateWebUrl"></cc1:ValidatorCalloutExtender>
                </td>
        </tr>
        <tr>
            <td style="width: 200px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="left">
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/Images/CompanyRegister.gif" onclick="ImageButton1_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>

</asp:Panel>
<cc1:RoundedCornersExtender ID="employeereg" runat="server" TargetControlID="EmpReg" Corners="All" BorderColor="#97B9DF" Radius="5">
 </cc1:RoundedCornersExtender>